package com.sz.sensor.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.sz.sensor.R;
import com.sz.sensor.entity.SimpleEntity;

public class ManageAdapter extends BaseQuickAdapter<SimpleEntity, BaseViewHolder> {
    public ManageAdapter() {
        super(R.layout.item_manage_detail);
    }

    @Override
    protected void convert(BaseViewHolder helper, SimpleEntity item) {
        RoundedImageView roundedImageView = helper.getView(R.id.riv_header);
        roundedImageView.setImageResource(item.getImgId());
        helper.setText(R.id.tv_title,item.getTitle());
    }
}
